package com.habdqn.jspdemo.im.enetity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * 企业信息
 * @author
 */
public class Company {
    private Integer id;
    private String name;
    private String city;
    private String information;
    /**
     * 信息来源字符串
     */
    private String source;
    /**
     * 信息来源编号
     * 1：网络 2：QQ/微信 3：电话 4：其它
     */
    private Integer sourceId;
    //实体转换成JSON格式时，指定时间的序列化方式
    @JSONField(format = "yyyy-MM-dd HH:mm")
    private Date updateTime;
    private String logo;

    public Company() {
    }

    public Company(Integer id, String name, String city, String information, String source, Integer sourceId, Date updateTime, String logo) {
        this.id = id;
        this.name = name;
        this.city = city;
        this.information = information;
        this.source = source;
        this.sourceId = sourceId;
        this.updateTime = updateTime;
        this.logo = logo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Integer getSourceId() {
        return sourceId;
    }

    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }
}
